package com.wander.patterns.act.observer2;

import java.util.Observable;

/**
 * @description:
 * @author: zhuyong
 * @create: 2019-09-11 17:27
 **/


public class ConcreteSubject extends Observable {
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        //状态标识 Observable 提供的
        setChanged();
        notifyObservers();
    }

    @Override
    public void notifyObservers() {
        super.notifyObservers();
    }
}
